package cn.geapi.core.datasource;

public class DataSourceHolder {
	public static final ThreadLocal<String> DATASOURCES=new ThreadLocal<String>();
	public static Object getDataSource() {
		return DATASOURCES.get();
	}
	public static void setDataSource(String key){
		DATASOURCES.set(key);
	}
	public static void clearDataSource(){
		DATASOURCES.remove();
	}
}
